package cheme.ProcessEditor.Parts.Streams.Tag;

import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;

import cheme.ProcessEditor.Figures.FieldFig;
import cheme.ProcessEditor.Figures.ImmutableFieldFig;
import cheme.ProcessEditor.Parts.AbstractChildPart;
import cheme.ProcessModel.IChild;
import cheme.ProcessModel.Table.ImmutableField;

public class PartImmutableField extends AbstractChildPart
{

	@Override
	protected IFigure createFigure()
	{
		ImmutableFieldFig fig = new ImmutableFieldFig(getModel().getText());
		fig.setToolTip(new Label(getModel().getToolTipText()));
		return fig;
	}

	@Override
	protected void createEditPolicies()
	{
		// TODO Auto-generated method stub
		
	}

	@Override
	public ImmutableField getModel()
	{
		return (ImmutableField)super.getModel();
	}
}
